package com.gx.po;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * room_type
 * @author 
 */
public class RoomType implements Serializable {
    /**
     * 客房类型编号
     */
    private Integer id;

    /**
     * 客房类型名称
     */
    private String roomTypeName;

    /**
     * 价格
     */
    private BigDecimal roomPrice;

    /**
     * 房间面积
     */
    private String roomArea;

    /**
     * 房间是否有窗户
     */
    private Boolean roomWindow;

    /**
     * 床型
     */
    private String bedType;

    /**
     * 楼层
     */
    private String floor;

    /**
     * 人数
     */
    private Integer peopleNumber;

    /**
     * 提供网络
     */
    private String network;

    /**
     * 备注
     */
    private String remark;

    /**
     * 房间图片
     */
    private String roomPicture;

    /**
     * 客房数目
     */
    private Integer roomNumber;

    /**
     * 显示顺序
     */
    private Integer roomShowOrder;

    /**
     * 是否有效
     */
    private Boolean isValid;

    private Integer hotelId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoomTypeName() {
        return roomTypeName;
    }

    public void setRoomTypeName(String roomTypeName) {
        this.roomTypeName = roomTypeName;
    }

    public BigDecimal getRoomPrice() {
        return roomPrice;
    }

    public void setRoomPrice(BigDecimal roomPrice) {
        this.roomPrice = roomPrice;
    }

    public String getRoomArea() {
        return roomArea;
    }

    public void setRoomArea(String roomArea) {
        this.roomArea = roomArea;
    }

    public Boolean getRoomWindow() {
        return roomWindow;
    }

    public void setRoomWindow(Boolean roomWindow) {
        this.roomWindow = roomWindow;
    }

    public String getBedType() {
        return bedType;
    }

    public void setBedType(String bedType) {
        this.bedType = bedType;
    }

    public String getFloor() {
        return floor;
    }

    public void setFloor(String floor) {
        this.floor = floor;
    }

    public Integer getPeopleNumber() {
        return peopleNumber;
    }

    public void setPeopleNumber(Integer peopleNumber) {
        this.peopleNumber = peopleNumber;
    }

    public String getNetwork() {
        return network;
    }

    public void setNetwork(String network) {
        this.network = network;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRoomPicture() {
        return roomPicture;
    }

    public void setRoomPicture(String roomPicture) {
        this.roomPicture = roomPicture;
    }

    public Integer getRoomNumber() {
        return roomNumber;
    }

    public void setRoomNumber(Integer roomNumber) {
        this.roomNumber = roomNumber;
    }

    public Integer getRoomShowOrder() {
        return roomShowOrder;
    }

    public void setRoomShowOrder(Integer roomShowOrder) {
        this.roomShowOrder = roomShowOrder;
    }

    public Boolean getIsValid() {
        return isValid;
    }

    public void setIsValid(Boolean isValid) {
        this.isValid = isValid;
    }

    public Integer getHotelId() {
        return hotelId;
    }

    public void setHotelId(Integer hotelId) {
        this.hotelId = hotelId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RoomType other = (RoomType) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getRoomTypeName() == null ? other.getRoomTypeName() == null : this.getRoomTypeName().equals(other.getRoomTypeName()))
            && (this.getRoomPrice() == null ? other.getRoomPrice() == null : this.getRoomPrice().equals(other.getRoomPrice()))
            && (this.getRoomArea() == null ? other.getRoomArea() == null : this.getRoomArea().equals(other.getRoomArea()))
            && (this.getRoomWindow() == null ? other.getRoomWindow() == null : this.getRoomWindow().equals(other.getRoomWindow()))
            && (this.getBedType() == null ? other.getBedType() == null : this.getBedType().equals(other.getBedType()))
            && (this.getFloor() == null ? other.getFloor() == null : this.getFloor().equals(other.getFloor()))
            && (this.getPeopleNumber() == null ? other.getPeopleNumber() == null : this.getPeopleNumber().equals(other.getPeopleNumber()))
            && (this.getNetwork() == null ? other.getNetwork() == null : this.getNetwork().equals(other.getNetwork()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getRoomPicture() == null ? other.getRoomPicture() == null : this.getRoomPicture().equals(other.getRoomPicture()))
            && (this.getRoomNumber() == null ? other.getRoomNumber() == null : this.getRoomNumber().equals(other.getRoomNumber()))
            && (this.getRoomShowOrder() == null ? other.getRoomShowOrder() == null : this.getRoomShowOrder().equals(other.getRoomShowOrder()))
            && (this.getIsValid() == null ? other.getIsValid() == null : this.getIsValid().equals(other.getIsValid()))
            && (this.getHotelId() == null ? other.getHotelId() == null : this.getHotelId().equals(other.getHotelId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getRoomTypeName() == null) ? 0 : getRoomTypeName().hashCode());
        result = prime * result + ((getRoomPrice() == null) ? 0 : getRoomPrice().hashCode());
        result = prime * result + ((getRoomArea() == null) ? 0 : getRoomArea().hashCode());
        result = prime * result + ((getRoomWindow() == null) ? 0 : getRoomWindow().hashCode());
        result = prime * result + ((getBedType() == null) ? 0 : getBedType().hashCode());
        result = prime * result + ((getFloor() == null) ? 0 : getFloor().hashCode());
        result = prime * result + ((getPeopleNumber() == null) ? 0 : getPeopleNumber().hashCode());
        result = prime * result + ((getNetwork() == null) ? 0 : getNetwork().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getRoomPicture() == null) ? 0 : getRoomPicture().hashCode());
        result = prime * result + ((getRoomNumber() == null) ? 0 : getRoomNumber().hashCode());
        result = prime * result + ((getRoomShowOrder() == null) ? 0 : getRoomShowOrder().hashCode());
        result = prime * result + ((getIsValid() == null) ? 0 : getIsValid().hashCode());
        result = prime * result + ((getHotelId() == null) ? 0 : getHotelId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", roomTypeName=").append(roomTypeName);
        sb.append(", roomPrice=").append(roomPrice);
        sb.append(", roomArea=").append(roomArea);
        sb.append(", roomWindow=").append(roomWindow);
        sb.append(", bedType=").append(bedType);
        sb.append(", floor=").append(floor);
        sb.append(", peopleNumber=").append(peopleNumber);
        sb.append(", network=").append(network);
        sb.append(", remark=").append(remark);
        sb.append(", roomPicture=").append(roomPicture);
        sb.append(", roomNumber=").append(roomNumber);
        sb.append(", roomShowOrder=").append(roomShowOrder);
        sb.append(", isValid=").append(isValid);
        sb.append(", hotelId=").append(hotelId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}